namespace SimpleWebServices
{
    using System;

    public sealed class DefaultConstructorTest<T> : ITestExpectation
    {
        public bool Check()
        {
            if (null == typeof(T).GetConstructor(Type.EmptyTypes))
            {
                throw new TestException(typeof(T).Name + " does not have a default constructor.");
            }

            return true;
        }
    }
}